<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-充值</title>
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<link rel="stylesheet" href="__CSS__/type_info.css">
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.js"></script>
<script src="__JS__/member.validate.js"></script>
<style>
    .menu_liinfo .pop_input{overflow: hidden;padding-left: 0;width: 100%;}
    .zfspan{ display:inline-block;float: left; width: 37%;margin-right: 3%; text-align: right;}
    .zfpwd{ float: left; width: 60%; }
</style>
</head>
<body>
<form action="__URL__/yanzheng" method="post">
<ul class="uslist font14">
	<li class="updates nobor_bottom">
		<p>充值金额</p>
		<div class="inputs">
			<input type="number" id="nums" name="nums" placeholder="请输入充值金额" value="" class="inputtype font14" required/>
			<label for="nums" class="errorinfo"> </label>
		</div>
	</li>
</ul>
<div style="height:15px;"></div>
<input type="button" value="充值" class="submits font14">
<input type="hidden" class="user" name="user" value="<?php echo $_SESSION['user']?>">
<input type="hidden" name="h" value="{$bid}">

    <!--输入支付密码-->
    <div class="pop_up menu_liinfo" style="display:none;">
        <div class="pop_upbg"></div>
        <div class="pop_uplog font14">
        
            <div class="pop_input">
                <span class="zfspan">支付密码: </span><input name="p" type="password" placeholder="请输入支付密码" class="inputtype font14 zfpwd" pattern="[1-9]\d*|0$" required/>
            </div>  
            <div class="pop_button">
                <input type="submit" value="确定" class="yes1"/>
                <a href="javascript:void(0);" onclick="hid()" style="border-left:1px solid #dcdcdc;">取消</a>
            </div>
        
        </div>
    </div>  
</form>
<script>
$(".submits").click(function() {
    var use=$(".user").val();
    var money=$("#nums").val();
     $.post("__URL__/chongzhi", {user:use,money:money}, function (data) {
        if (data==0) {
            alert("未设置支付密码！前往设置后再试");
        }else if(data==1){
            alert("您的账户余额不足！请充值");
        }else if(data==3){
            $('.menu_liinfo').fadeIn(1000).css('display','block');
        }
     })
});
// $(document).ready(function(){
//     $('.clickzf').on('click',function(){
//         $('.menu_liinfo').fadeIn(1000).css('display','block');
//     })
// })
function hid() {
    $('.pop_up').css('display','none');
}
// $().ready(function() {
//  var validator = $("#signupForm").validate({
//         submitHandler:function(form){
//             alert("submitted");
//             form.submit();
//         }
//     });
//     $("#reset").click(function() {
//         validator.resetForm();
//     });
// });
</script>
</body>
</html>